package com.dtx.exercise.array;

public class ArrayDemo {
    public static void main(String[] args) throws Exception {
        Array<String> array = new Array<>();
        array.add("A");
        array.add("B");
        array.add("C");
        array.add("D");
        array.add("E");
        array.output();
        System.out.println("=======================");
        array.insert(1,"arr");
        array.insert(5,"Obbjcet");
        array.output();
        System.out.println("=========================");
        array.query("A");
        array.delete(1);
        array.delete(4);
        System.out.println("===========================");
        array.output();
    }
}
